import {addColumnEllipsis} from 'utils/common';

let columns = [
  {
    dataIndex: 'title',
    title: '标题'
  },
  {
    dataIndex: 'image',
    title: '图片',
    width: 100,
    scopedSlots: {customRender: 'imgs'},
    align: 'center'
  },
  {
    dataIndex: 'content',
    title: '内容'
  },
  {
    dataIndex: 'stat',
    title: '状态',
    width: 80,
    scopedSlots: {customRender: 'status'},
    align: 'center'

  },
  {
    dataIndex: 'createTime',
    title: '创建时间',
    width: 140,
    align: 'center'
  },
  {
    dataIndex: 'operation',
    title: '操作',
    width: 120,
    scopedSlots: {customRender: 'operation'},
    align: 'center'
  }
];

columns = addColumnEllipsis(columns);
export default columns;
